package com.sy.controller;


import com.sy.service.StudentService;

import com.sy.vo.StudentVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @Author:fma
 * @Date: 2021/10/11 19:51
 */
@RestController
public class StudentController {
    @Autowired
    private StudentService studentService;

    /**
     * 修改操作
     * @param studentVo 学生修改的信息
     * @return 修改是否成功
     */
    @RequestMapping(value = "students", method = RequestMethod.POST)
    public boolean fixStudent(@RequestBody StudentVo studentVo) {
        return studentService.editStuBySno(studentVo);
    }

}
